<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<html>
<head>
<title>凯盛项目管理系统</title>
<link rel="stylesheet" type="text/css" href="style/bootstrap.min.css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<style type="text/css">
body {
	padding-top: 70px;
	padding-left: 70px;
	background-image:url(img/ab.png);
}
</style>
</head>

<body class="body">
	<%@ include file="top.jsp"%>
	<%@ include file="leftlabel.jsp"%>
	<div class="span9">
		<ul class="breadcrumb"
			style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
			<li class="active"><a href="idea.action"><i
					class="icon-fire"></i>想法</a>>${idea.title}</li>

		</ul>
		<div class="wall">
			<div class="page-header">
				<h3>
					${idea.title}&nbsp;&nbsp;<small>${idea.user.username}发布于
						${idea.createtime}</small>
				</h3>
			</div>
			<p>${idea.content}</p>


			<div class="line">评论</div>
			<form method="post" action="ideacommentsave.action">
				<input type="hidden" name="id" value="${idea.id}" />
				<textarea name="ideacomment.content" id="" class="span8" rows="5"></textarea>
				<br />
				<button type="submit" class="btn btn-primary">发布</button>
			</form>

			<c:forEach items="${ideacommentList}" var="ideacomment">
				<blockquote>
					${ideacomment.content} <small>
						${ideacomment.user.username}发布于 ${ideacomment.createtime} <a
						href="editideacomment.action?id=${ideacomment.id}"
						title="编辑"><i class="icon-pencil"></i> </a> <a
						href="delideacomment.action?id=${ideacomment.id}&idea.id=${idea.id}"
						title="删除"><i class="icon-trash"></i> </a> </small>
				</blockquote>
			</c:forEach>
			<a href="idea.action">←返回想法列表</a>
		</div>
	</div>
	</div>
	</div>

</body>
</html>